package aop;

import aop.bean.Cat;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AspectjApp {
    public static void main(String[] args) {
        final ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("aop\\xml\\beansForAspectj.xml");
        final Cat cat = (Cat) context.getBean("cat");
        cat.getName();
        cat.getAge();
        cat.printThrowException();
    }
}

